<include file="{$head}" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{$index}">列表</a></li>
        <li  class="active"><a href="{$add}">添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{$addPost}">
        <foreach name="fields" item="vo" key="key">
            <if condition="$key gt 0">
                
                <div class="form-group">
                    <label class="col-sm-2 control-label"><if condition="$vo.IS_NULLABLE eq 'NO'"><span class="form-required">*</span></if> {$vo.COLUMN_COMMENT}</label>
                    <div class="col-md-6 col-sm-10">
                        <input type="text" class="form-control" name="{$vo.COLUMN_NAME}" value="">
                    </div>
                </div>
            </if>
        </foreach>

        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang("SAVE")}</button>
            <a class="btn btn-default" href="{$index}">返回</a>
        </div>
    </form>

</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>